<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="br.com.fametro.model.dao.CadastroDao"%>
<%@page import="br.com.fametro.model.bean.Funcinario"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<%
List<Funcinario> listFuncinario = new ArrayList<Funcinario>();
CadastroDao FuncinarioDao = new CadastroDao();
String nome = request.getParameter("txtnome");
%>
<table border="1">
<thead>
<tr>
<th>Codigo</th>
<th>Nome</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
<%listFuncinario = CadastroDao.listar();
for(Funcinario b: listFuncinario) {
%>
<tr>
<td><%= b.getBainome() %></td>
<td>
</td>
</tr>
<%
}
%>
</tbody>
</table>
</body>
</html>

